<template>
  <div>
    <input type="text" placeholder="请输入账号" />
    <input type="password" placeholder="请输入密码" />
  </div>
</template>

<script>
export default {
  created () {
    console.log('formlogin创建了')
  },
  destroyed () {
    console.log('formlogin销毁了')
  },

  // 如果某个组件被缓存，会多两个钩子
  activated () {
    console.log('组件显示了')
  },

  deactivated() {
    console.log('组件隐藏了')
  }
}
</script>

<style></style>
